package com.fengkai.filepost.pdfoutstream.test;

import org.jasypt.util.text.BasicTextEncryptor;
import org.junit.Test;

import java.io.File;
import java.util.HashMap;

/**
 * @author Fengkai
 * @creat 2021/10/21
 */
public class SaveFile {
    public static void main (String[] args) {


    }

    @Test
    public void test01 () {
        System.out.print("1" + " ");
        System.out.println("2");
        System.out.println("3");
    }

    @Test
    public void test02 () {
        BasicTextEncryptor basicTextEncryptor = new BasicTextEncryptor();
        basicTextEncryptor.setPassword("carry@2022");
        String user = basicTextEncryptor.encrypt("root");
        String password = basicTextEncryptor.encrypt("123456");

        System.out.println("user:" + user + " ,password:" + password);
        String decrypt = basicTextEncryptor.decrypt("Fmj8aqtU7nn4+HjBacn0RQ==");
        System.out.println(decrypt);

    }


    @Test
    public void test03(){
        int i = 6;
        int s = ~i;
        int u = i >> 1;
        System.out.println(Integer.toString(i, 2));
        System.out.println(Integer.toString(s , 2));
        System.out.println(u);


    }

}
